package com.lenovo.smarttraffic.ui.activity;

import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.EditText;

import com.lenovo.smarttraffic.R;

public class IpSetting extends BaseActivity {

    private EditText ip1edt, ip2edt, ip3edt, ip4edt;

    private int ip1, ip2, ip3, ip4;


    @Override
    protected int getLayout() {
        return R.layout.activity_setting_ip;
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        SharedPreferences ip = this.getSharedPreferences("IP", MODE_PRIVATE);
        ip1 = ip.getInt("ip1", 118);
        ip2 = ip.getInt("ip2", 118);
        ip3 = ip.getInt("ip3", 118);
        ip4 = ip.getInt("ip4", 118);

//        ip1edt.setText();


    }
}
